package com.discovery.getway.servie;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import com.discovery.getway.hystric.FeignHystricFallback;

//name = "abcde", url = "http://localhost:8083/"
/**
 * url不为空时，name可以随意，不需要跟踪名称
 * 
 * @author thomashe
 *
 */
@FeignClient(value = "api-provider", fallback = FeignHystricFallback.class)
public interface IFeignService {

	@GetMapping("/api/demo/instance")
	String getInstanceId();
}
